package com.heima.media.service;

import com.heima.common.dto.PageResponseResult;
import com.heima.common.dto.ResponseResult;
import com.heima.media.dto.SensitiveDto;
import com.heima.media.entity.WmSensitive;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

/**
 * <p>
 * 敏感词信息表 服务类
 * </p>
 *
 * @author SpaceTraveller
 * @since 2022-11-09
 */
public interface IWmSensitiveService extends IService<WmSensitive> {

    PageResponseResult getSensitiveList(SensitiveDto dto);

    ResponseResult putSensitives(Map<String,String> sensitives);

    ResponseResult updateSensitives(WmSensitive sensitives);

    ResponseResult testExcelPutIn(MultipartFile file) throws IOException;
}
